 |
|
 |
Subject: IBM HELP - _NOTE_PARENT_NOTEID - returns 0, not parent ID |
 |
 |
 |
Product Area: Domino Server |
 |
Technical Area: Functionality |
 |
Platform: Windows |
 |
Release: 8.5.2 |
 |
Reproducible: Always |
 |
 |
 |
 |
Guys
Anyone had any experience with _NOTE_PARENT_NOTEID
The Doco says - "_NOTE_PARENT_NOTEID - Get the Note ID of the immediate parent note for this note (NOTEID). This ID is zero if this note has no parent."
The doco also says "The parent Note ID (obtained by using _NOTE_PARENT_NOTEID) and the response count (obtained by using _NOTE_RESPONSE_COUNT) are always made available to an application whenever a note is opened."
Code fragment used to test it below, it is processing a reply to a email & I'm trying to get a handle to the original email message,
NOTEID nidParent = 0;
// make sure that document is a response - "$REF"
if ( NSFItemIsPresent ( hReplyNote, RESPONSE_FIELD, (WORD)strlen(RESPONSE_FIELD)) == TRUE )
{
dbg_WriteDebugMessage( "util_GetMemoOf Reply - NSFItemIsPresent - Got the field $REF" ); // 14 / 2 / 2012
NSFNoteGetInfo( hReplyNote,_NOTE_PARENT_NOTEID, &nidParent);
if (nidParent != 0)
{
dbg_WriteDebugMessage( "util_GetMemoOf Reply - NSFNoteGetInfo - Get the notes _NOTE_PARENT_NOTEID parent - nidParent != 0" );
return nidParent;
}
else
{
dbg_WriteDebugMessage( "util_GetMemoOf Reply - NSFNoteGetInfo - Unable to get the notes _NOTE_PARENT_NOTEID - nidParent = 0" );
}
}
This code always results in
02/15 00:05:48 util_GetMemoOf Reply - NSFItemIsPresent - Got the field $REF
02/15 00:05:48 util_GetMemoOf Reply - NSFNoteGetInfo - Unable to get the notes _NOTE_PARENT_NOTEID - nidParent = 0
The doc says that _NOTE_PARENT_NOTEID will return the parents note ID, but it doesnt :(
The other option is to "decode" the $REF value, but I have had no joy doing this as well :(
TIA
NG
 
Feedback number WEBB8RGVYY created by ~Howard Fronivitchflar on 02/14/2012

Status: Open
Comments:

IBM HELP - _NOTE_PARENT_NOTEID - re... (~Howard Fronivi... 14.Feb.12)
. . Is the parent note in the same NSF ... (~Ned Nimfanakon... 15.Feb.12)
. . . . RE: Is the parent note in the same ... (~Howard Fronivi... 15.Feb.12)
. . . . . . Maybe a bug, but with Extension Man... (~Ned Nimfanakon... 21.Feb.12) |
|  |
|